import { createRouter, createWebHistory } from 'vue-router'
// import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      // component: HomeView
      component: () => import('../views/HomeView.vue')
    },
    {
      path: '/classify',
      name: 'classify',
      component: () => import('../views/classify.vue')
    },
    {
      path: '/shopp',
      name: 'shopp',
      component: () => import('../views/shopping.vue')
    },
    {
      path: '/mine',
      name: 'mine',
      component: () => import('../views/mine.vue')
    },
    {
      path: '/detail',
      name: 'detail',
      component: () => import('../subpage/Switch.vue')
    },
    {
      path: '/pageSearch',
      name: 'pageSearch',
      component: () => import('../subpage/histSearch.vue')
    },
    // {
    //   path:"/searchPage",
    //   name:"searchPage",
    //   component:()=>import("../views/searchPage.vue")
    // }
  ]
})

export default router
